﻿using System;
using System.Collections.Generic;

namespace Sustainalytics.Entities
{
    public static class ReportTypeExtensions
    {
        private static readonly Dictionary<ReportType, ReportName> _map = new Dictionary<ReportType, ReportName>
        {
            [ReportType.ComprehensiveReport]              = ReportName.ESGRatings,
            [ReportType.SummaryComprehensiveReport]       = ReportName.ESGSummary,
            [ReportType.CoreReport]                       = ReportName.ESGRatings,
            [ReportType.SummaryCoreReport]                = ReportName.ESGSummary,
            [ReportType.ControversyReport]                = ReportName.Controversy,
            [ReportType.CorporateGovernanceCompanyReport] = ReportName.CG,
        };

        public static string GetFullReportName(this ReportType reportType, string companyName, Guid companyId)
            => _map[reportType].GetFullReportName(companyName, companyId);
    }
}
